import { createApp } from 'vue'
import '@/assets/styles/index.scss'
import App from './App.vue'
import { setupRouter } from '@/router/index'
import { createPinia } from 'pinia'
// 外来的svg注册
import 'virtual:svg-icons-register'
// 自定义指令
import { directive } from '@/directive/index'

const app = createApp(App)

// 注册指令
directive(app)

// 注册路由
setupRouter(app)

// 注册pinia
const pinia = createPinia()
app.use(pinia)

app.mount('#app')